of

open fun of(width: Float, height: Float, unit: PaperSize.Unit): PaperSize

Creates a new PaperSize setting.

Parameters

width

the width of the paper

height

the height of the paper

unit

the width and height measurement unit

Throws

if width or height is negative


open fun of(width: Float, height: Float, unit: PaperSize.Unit, name: String): PaperSize

Creates a new PaperSize setting.

Parameters

width

the width of the paper

height

the height of the paper

unit

the width and height measurement unit

name

the name of the paper size

Throws

if width or height is negative, or if name is empty or blank